package com.huazhen.itrip.biz.service.image;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripImage;
import com.huazhen.itrip.beans.vo.ItripImageVO;
import com.huazhen.itrip.dao.image.ItripImageMapper;
@Service("ItripImageService")
public class ItripImageServiceImpl implements ItripImageService {
	@Autowired
	private ItripImageMapper itripImageMapper;
	@Override
	public ItripImage getItripImageById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.getItripImageById(id);
	}

	@Override
	public List<ItripImageVO> getItripImageListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.getItripImageListByMap(param);
	}

	@Override
	public Integer getItripImageCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.getItripImageCountByMap(param);
	}

	@Override
	public Integer insertItripImage(ItripImage itripImage) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.insertItripImage(itripImage);
	}

	@Override
	public Integer updateItripImage(ItripImage itripImage) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.updateItripImage(itripImage);
	}

	@Override
	public Integer deleteItripImageById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripImageMapper.deleteItripImageById(id);
	}

}
